﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Incubator.Controls
{
    public partial class menu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserID"] == null)
                Session["UserID"] = -1;
            if ((int)Session["UserID"] <= 0)
            {
                this.logedin.Visible = false;
                this.logedout.Visible = true;
            }
            else
            {//login success
                this.logedin.Visible = true;
                this.logedout.Visible = false;
                
            }
        }

    }
}